package com.itheima.inner.practice01.practice02;

public class Test01 {
    public static void main(String[] args) {
        InnerImpl ii =new InnerImpl();
        ii.show();
        new Inner() {
            @Override
            public void show() {
                System.out.println("匿名内部类...show");
            }
        }.show();
        Inner i =new Inner() {
            @Override
            public void show() {
                System.out.println("匿名内部类...show");
            }
        };
        i.show();
    }
}
interface  Inner{
    void show();
}
class InnerImpl implements Inner{

    @Override
    public void show() {
        System.out.println("InnerImpl...show");
    }
    public void method() {
        System.out.println("InnerImpl...method");
    }
}